package com.fqgj.xjd.user.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserBehaviorGpsDao;
import com.fqgj.xjd.user.entity.UserBehaviorGpsEntity;
import org.springframework.stereotype.Repository;

/**
* User: zhangxingyun
* Date: 2017-07-20
* Time: 18:38:53.055
*/

@Repository
public class UserBehaviorGpsDaoImpl extends AbstractBaseMapper<UserBehaviorGpsEntity> implements UserBehaviorGpsDao {

    @Override
    public UserBehaviorGpsEntity selectLatestUserGpsByUserCode(String userCode) {
        return getSqlSession().selectOne(getStatement("selectLatestUserGpsByUserCode"),userCode);
    }

    @Override
    public Integer updateByUserCode(String userCode) {
        return getSqlSession().selectOne(getStatement("updateByUserCode"),userCode);
    }
}